package org.lee.controller;

import org.lee.bean.Person;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("person2")
public class YourController {

	@RequestMapping(value="search2", produces=MediaType.APPLICATION_JSON_VALUE)
	public Person search(){
		Person p = new Person();
		p.setFirstName("lee");
		p.setLastName("li");
		
		return p;
		
//		Person2 p = new Person2();
//		p.setFirstName("lee");
//		p.setLastName("li");
//		return p;
	}
	
}
